<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>垂直居中</title>
    <style type="text/css">
        span,img{   //图片与文字的垂直居中
            display: inline-block;
            vertical-align: middle;
        }
    </style>
</head>
<body>
<div>
    <img src="images/icon.gif">
        <span>这是几本值得拥有的Books</span>
</div>
</body>
</html>